fix(templatize): adapt IstioUpgrade step for ARO-Tools Value aksCluster - #6201
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates tooling/templatize to compile against the latest github.com/Azure/ARO-Tools/pipelines by adapting the IstioUpgrade runner to the updated IstioUpgradeStep schema (AKSCluster now a Value, dryRun removed). This unblocks downstream dependency bumps that require the newer ARO-Tools pipelines commit.
Changes:
- Bump
github.com/Azure/ARO-Tools/pipelinesdependency toca2cea2cb707. - Resolve
IstioUpgradeStep.AKSClusterviaresolveValueand thread the resolved cluster name into kubeconfig creation and Istio upgrade options. - Remove assignment to the removed
DryRunfield.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| tooling/templatize/pkg/pipeline/istio.go | Updates IstioUpgrade runner to resolve aksCluster via resolveValue and removes DryRun usage. |
| tooling/templatize/go.mod | Bumps the github.com/Azure/ARO-Tools/pipelines module version. |
| tooling/templatize/go.sum | Updates sums for the new pipelines pseudo-version. |
d9e8f29 to
ba518ff
Compare
ba518ff to
4f1c426
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 5 out of 9 changed files in this pull request and generated no new comments.
Comments suppressed due to low confidence (1)
tooling/templatize/pkg/pipeline/istio.go:43
- resolveValue uses the passed serviceGroup when resolving input-based Values. Passing an empty serviceGroup here makes any future/use-case errors harder to diagnose (they’ll report missing service group ""). Passing id.ServiceGroup is a no-risk improvement and keeps this consistent with other resolveValue call sites.
clusterName, err := resolveValue(step.AKSCluster, options.Configuration, nil, "")
Wire ExecutionState outputs and id.ServiceGroup into resolveValue, and reject an empty resolved cluster name.
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: stevekuznetsov, trevorwilliams2025 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What
github.com/Azure/ARO-Tools/pipelinesto currentmain(ca2cea2, includes Azure/ARO-Tools#265)IstioUpgradepipeline runner to resolveaksClusteras aValueviaresolveValue(withExecutionStateoutputs +id.ServiceGroup, and reject empty cluster name)dryRunfield onIstioUpgradeSteppipelinesbump through workspace modules that depend on it (test,tooling/helmtest,tooling/pipeline-documentation) viamake tidyWhy
ARO-Tools#265 changed
IstioUpgradeStep.AKSClusterfromstringtoValueand droppeddryRun. Without this consumer adapt, ARO-HCP templatize does not compile against current ARO-Tools, which blocks dependency bumps (e.g. SafeFly in #6173).Testing
go test ./pkg/pipeline/...intooling/templatize(passes locally). No new cases — compile/API adapt only.configRef/inputthroughValueSpecial notes for your reviewer
tooling/templatize/pkg/pipeline/{istio.go,run.go}go.mod/go.sumupdates also includetest,tooling/helmtest, andtooling/pipeline-documentation— required somake tidy/verify-deepcopystays clean after the workspacepipelinesbump (not optional extras)PR Checklist
If E2E tests are included:
demonstrate that the test is able to detect a defect/error and fail with
proper error message and logs which communicates nature of the problem.